﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Allocation.aspx.cs" Inherits="WMS6.Web.Outbound.Allocation" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Allocation</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/jquery.blockUI.js" type="text/javascript"></script>
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script src="../Js/Verification.js" type="text/javascript"></script>
    <script type="text/javascript">
    
          window.onload = function(){
                var actionID = window.dialogArguments;
                if(actionID != "" && actionID != null)
                {
                    document.getElementById("hdnActionID").value = actionID;
                    var array = actionID.split(',');
                    initQueryPage(array[0],array[1]);
                }
                else
                {
                       initEditNewPage();
                }
            }
        
        function newAllocation()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "Allocation.aspx?from=" + escape(from);
            return false; 总订购量
        }
        //弹出窗口选择货主Lot
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {              
                document.getElementById("txtOwnerID").value = rtnValue;
             
            }
        }
        function showAction()
		{	
			var pos = getElementPos("htmlbtnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
		}		
       function hiddenDiv()
		{
			var flag = document.getElementById("hiddenFlag").value
			if(flag == "1")
			{
				document.getElementById("actionDiv").style.display = "block";
				document.getElementById("hiddenFlag").value = '0';
			}
			else 
			{
				document.getElementById("actionDiv").style.display = "none";
			}
		}
		
		//弹出手动分配窗口
		function popManualAllocation()
        {
            var lang = self.parent.document.getElementById("hdnPerfLanguage").value;
            var style = self.parent.document.getElementById("henPerfStyle").value;
            setTab('one',2,4);
            var rtnValue = window.showModalDialog('ManualAllocation.aspx',lang+','+style,'dialogWidth=850px;dialogHeight=580px;center=yes;resizable=yes;status=no;')
            if(rtnValue != null && rtnValue.toString() != "")
            {
                var temp = rtnValue.split(',');
                if(temp.length > 1)
                {
                    rtnValue = temp[0];
                }
                else 
                {
                    document.getElementById("lblMsg").innerText = "分配完成!";
                }
                document.getElementById("hdnRtnValue").value = rtnValue;
                document.getElementById("btnRefresh").click();
            }
        }
        
        
        		 
		//显示 报表 DIV
		function showReport()
		{	
			var pos = getElementPos("htmlbtnReport");	
			document.getElementById("reportDiv").style.top = pos.y+17;
			document.getElementById("reportDiv").style.left = pos.x;  			
			document.getElementById("hiddenReportFlag").value = '1';
		}
		
		
		//隐藏 报表 DIV    
		function hiddenReportDiv()
		{
			var flag = document.getElementById("hiddenReportFlag").value
			if(flag == "1")
			{
				document.getElementById("reportDiv").style.display = "block";
				document.getElementById("hiddenReportFlag").value = '0';
			}
			else 
			{
				document.getElementById("reportDiv").style.display = "none";
			}
		}
		
		  
        function popPrintOutbound()
        {   
            var OrderID = document.getElementById("txtOrdersID").value;
            var OwnerID= document.getElementById("hdnOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=PRINTOUTBOUND&orderID=' + escape(OrderID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        
        function popPrintPickList()
        {
            var OrderID = document.getElementById("txtOrdersID").value;
            var OwnerID= document.getElementById("hdnOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=PRINTPICKLISTREPORT&orderID=' + escape(OrderID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        function popPrintPick()
        {
            var OrderID = document.getElementById("txtOrdersID").value;
            var OwnerID= document.getElementById("hdnOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=PRINTPICKREPORT&orderID=' + escape(OrderID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        function popPrintPickWork() 
        {
            var OrderID = document.getElementById("txtOrdersID").value;
            var sStatus = document.getElementById("ddlStatus").value;
            var OwnerID= document.getElementById("hdnOwnerID").value;
            if (sStatus.toUpperCase() == "NEW") 
            {
                window.open('../Common/PrintReport.aspx?rtype=PRINTPICKWORKREPORT&orderID=' + escape(OrderID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
                return true;                
            }
            else 
            {
                alert("单据状态不是新增,操作无效.");
                return false;
            }
        }
        function poplnkbtnPrintKittingWork() {
            var OrderID = document.getElementById("txtOrdersID").value;
            var OwnerID = document.getElementById("hdnOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=PRINTKITTINGWORKREPORT&orderID=' + escape(OrderID) + '&OwnerID=' + escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
        //弹出库存窗口
        function showInv(url) 
        {
            FastPopModalWindow(url, 'dialogWidth=950px;dialogHeight=600px;center=yes;resizable=yes;status=no;')
        }
        //锁屏
		function blockScreen()
		{
		    //锁屏
		    $.blockUI.defaults.message = GetBlockUIMsg();
            $.blockUI.defaults.overlayCSS.backgroundColor = GetBlockUIBgColor();
            $.blockUI();
		}
    </script>
</head>
<body>
    <form id="F7041" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
      <%--<asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>--%>
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblASN" runat="server" CssClass="label_header" 
                            Text="出库执行" meta:resourcekey="lblASN"></asp:Label></td>
                     <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>"  
                             CausesValidation="False" onclick="btnGoBack_Click" Enabled="False" 
                             /></td>                  
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"  
                            AccessKey="s" Enabled="False" meta:resourcekey="btnSave"  /></td>
                    <td><asp:Button ID="btnRefresh" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnRefresh%>"  
                            AccessKey="d" onclick="btnRefresh_Click" Enabled="False" 
                             /></td>            
                    <td><input id="htmlbtnAction" type="button" runat="server" value="<%$Resources:ButtonResource,btnAction%>" class="button"  onclick="showAction();" /></td>           
                    <td>      <input id="htmlbtnReport" type="button" runat="server" value="<%$Resources:ButtonResource,btnReport%>" class="button"  onclick="showReport();" /></td>       
                </tr>
            </table>
        </div>
        
      
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,4)" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">常规</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1"></div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,4)" id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one2">发货订单明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2"></div>
            </div>
                <div style="float: left; width: 8px;" >
                <div class="tabL_1" id="divL3"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,4)" id="divM3"  >
                <asp:Label ID="one3" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one3" >预分配明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;"  >
                <div class="tabR_1" id="divR3"></div>
            </div>
              <div style="float: left; width: 8px;" >
                <div class="tabL_1" id="divL4"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',4,4)" id="divM4">
                <asp:Label ID="one4" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one4">分配明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR4"></div>
            </div>
        </div>
        <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;" >
                     <tr>
                         <td width="180">
                             <asp:Label ID="lblOrdersID" runat="server" CssClass="label" Text="订单号" 
                                 meta:resourcekey="lblOrdersID"></asp:Label>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                 meta:resourcekey="lblStatus"></asp:Label>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblTyep" runat="server" CssClass="label" Text="订单类型" 
                                 meta:resourcekey="lblTyep"></asp:Label>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblOrdersDate" runat="server" CssClass="label" Text="订单日期" 
                                 meta:resourcekey="lblOrdersDate"></asp:Label>
                         </td>
                       
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtOrdersID" runat="server" CssClass="textbox" Enabled="False" 
                                 meta:resourcekey="txtOrdersID" ></asp:TextBox>
                         </td>
                         <td>
                             <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" 
                                 Enabled="False" meta:resourcekey="ddlStatus"></asp:DropDownList>
                         </td>
                         <td>
                             <asp:DropDownList ID="ddlType" runat="server" CssClass="mediumselectbox" 
                                 Enabled="False" onselectedindexchanged="ddlType_SelectedIndexChanged" 
                                 AutoPostBack="True" meta:resourcekey="ddlType">
                             </asp:DropDownList>
                         </td>
                         <td>
                             <asp:TextBox ID="txtOrdersDate" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtOrdersDate"></asp:TextBox>                          
                         </td>
                         
                     </tr>
                     <tr>
                         <td width="180">
                             <asp:Label ID="lblOwernID" runat="server" CssClass="label" Text="货主代码" 
                                 meta:resourcekey="lblOwernID"></asp:Label>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblOrderGroup" runat="server" CssClass="label" Text="订单分组" 
                                 meta:resourcekey="lblOrderGroup"></asp:Label>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblReferenceNum" runat="server" CssClass="label" Text="采购订单号" 
                                 meta:resourcekey="lblReferenceNum"></asp:Label>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblRequestedShipDate" runat="server" CssClass="label" 
                                 Text="要求发货日期" meta:resourcekey="lblRequestedShipDate"></asp:Label>
                         </td>
                       
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtOwernID" runat="server" CssClass="textbox" Enabled="False" 
                                 meta:resourcekey="txtOwernID" ></asp:TextBox>
                         </td>
                         <td>
                             <asp:TextBox ID="txtOrderGroup" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtOrderGroup" ></asp:TextBox>
                         </td>
                         <td>
                             <asp:TextBox ID="txtReferenceNum" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtReferenceNum"></asp:TextBox>
                         </td>
                         <td>
                             <asp:TextBox ID="txtRequestedShipDate" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtRequestedShipDate" ></asp:TextBox>                             
                         </td>
                       
                     </tr>
                     <tr>
                         <td width="180">
                             <asp:Label ID="lblPriority" runat="server" CssClass="label" Text="优先级" 
                                 meta:resourcekey="lblPriority"></asp:Label>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblTotalQty" runat="server" CssClass="label" Text="总订购量" 
                                 meta:resourcekey="lblTotalQty"></asp:Label>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblExternalOrderID" runat="server" CssClass="label" 
                                 Text="外部订单号1" meta:resourcekey="lblExternalOrderID"></asp:Label>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblActualShipDate" runat="server" CssClass="label" Text="实际发货日期" 
                                 meta:resourcekey="lblActualShipDate"></asp:Label>
                         </td>
                      
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtPriority" runat="server" CssClass="textbox" Enabled="False" 
                                 meta:resourcekey="txtPriority"></asp:TextBox>
                         </td>
                         <td>
                             <asp:TextBox ID="Qty" runat="server" CssClass="textbox" Enabled="False" 
                                 meta:resourcekey="Qty"></asp:TextBox>
                         </td>
                         <td>
                             <asp:TextBox ID="txtExternalOrderID" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtExternalOrderID" ></asp:TextBox>
                         </td>
                         <td>
                             <asp:TextBox ID="txtActualShipDate" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtActualShipDate" ></asp:TextBox>                            
                         </td>
                       
                     </tr>
                     <tr>
                         <td width="180px">
                                <asp:Label ID="lblWareHouseID" runat="server" CssClass="label" Text="收货仓库" 
                                    Visible="False" meta:resourcekey="lblWareHouseID"></asp:Label>
                                      <asp:Label ID="lblConsigneeID" runat="server" CssClass="label" Text="收货人代码" 
                                    Visible="False" ></asp:Label>
                        </td>
                        <td width="180px">
                                <asp:Label ID="lblIntransitID" runat="server" CssClass="label" Text="转仓单号" 
                                    Visible="False" meta:resourcekey="lblIntransitID"></asp:Label>
                                    <asp:Label ID="lblCCompany" runat="server" CssClass="label" Text="收货人名称" 
                                    Visible="False" ></asp:Label>
                                    </td>
                         <td width="180">
                             <asp:Label ID="lblExternalOrderID2" runat="server" CssClass="label" 
                                 Text="外部订单号2" meta:resourcekey="lblExternalOrderID2"></asp:Label>
                         </td>
                         <td width="180">
                             <asp:Label ID="lblDeliverDate" runat="server" CssClass="label" Text="到货日期" 
                                 meta:resourcekey="lblDeliverDate"></asp:Label>
                         </td>
                      
                     </tr>
                     <tr>
                         <td width="180px">
                                <asp:DropDownList ID="ddlWareHouseID" runat="server" CssClass="mediumselectbox" 
                                    Visible="False" meta:resourcekey="ddlWareHouseID"></asp:DropDownList>
                                      <asp:TextBox ID="txtConsigneeID" runat="server" CssClass="textbox" 
                                    Visible="False" Enabled="False" ></asp:TextBox>
                            </td>
                            <td width="180px">
                                <asp:TextBox ID="txtIntransitID" runat="server" CssClass="textbox" 
                                    Visible="False" Enabled="False" meta:resourcekey="txtIntransitID"></asp:TextBox>
                                      <asp:TextBox ID="txtCCompany" runat="server" CssClass="textbox" 
                                    Visible="False" Enabled="False" ></asp:TextBox></td>
                         <td>
                             <asp:TextBox ID="txtExternalOrderID2" runat="server" CssClass="textbox" Enabled="False" 
                                 meta:resourcekey="txtExternalOrderID2"></asp:TextBox>
                         </td>
                         <td>
                             <asp:TextBox ID="txtDeliverDate" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtDeliverDate" ></asp:TextBox>                           
                         </td>
                        
                     </tr>
                     <tr style="height: 10px;">
                         <td width="180">
                         </td>
                         <td width="180">
                         </td>
                         <td width="180">
                         </td>
                     </tr>
                 </table>
             </div>             
             <div id="con_one_2" style="display: none; overflow-x:auto; overflow-y:hidden;">
                 <table width="1000px" style="display: block; margin-left: 10px; margin-top: 10px;">
                     <tr>
                         <td>     
                            <table>
                                <tr>
                                    <td>
                                         <asp:Button ID="btnBatchPreAllocate" runat="server" CssClass="button"  Enabled="False"
                                             Text="<%$Resources:ButtonResource,btnBatchPreAllocate%>" OnClientClick="blockScreen();" OnClick="btnBatchPreAllocate_Click" 
                                             meta:resourcekey="btnBatchPreAllocate" />                                
                                     </td>
                                     <td>
                                         <asp:Button ID="btnBatchAllocate" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnBatchAllocate%>" 
                                             OnClientClick="blockScreen();" OnClick="btnBatchAllocate_Click"  Enabled="False"
                                             meta:resourcekey="btnBatchAllocate" />  
                                     </td>
                                     <td>     
                                        <asp:Button ID="btnBatchRevertPreAllocate" runat="server" CssClass="button" 
                                             Text="<%$Resources:ButtonResource,btnBatchRevertPreAllocate%>" OnClientClick="blockScreen();" 
                                             OnClick="btnBatchRevertPreAllocate_Click"  Enabled="False"
                                             meta:resourcekey="btnBatchRevertPreAllocate" />                  
                                     </td>
                                </tr>
                            </table>                        
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr style="height: 10px;">
                         <td>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr>
                         <td >
                             <div>
                                 <asp:GridView ID="gvOrderDetail" runat="server" AutoGenerateColumns="False"  AllowSorting="True"
                                     AllowPaging="True" CssClass="gridview" Width="3300px"  onrowdatabound="gvOrderDetail_RowDataBound" 
                                     DataKeyNames="OrderID,LineID,OriginalQty,UomID,PackID,Lot,LpnID,SkuID,OwnerID,Status,ExpiryType" 
                                     onselectedindexchanging="gvOrderDetail_SelectedIndexChanging" oninit="gvOrderDetail_Init" 
                                     onpageindexchanging="gvOrderDetail_PageIndexChanging" 
                                     onsorting="gvOrderDetail_Sorting" 
                                     meta:resourcekey="gvOrderDetail">
                                     <FooterStyle CssClass="GridViewFooterStyle" />
                                     <RowStyle CssClass="GridViewRowStyle" />
                                     <PagerStyle CssClass="GridViewPageStyle" />
                                     <HeaderStyle CssClass="GridViewHeaderStyle" />
                                     <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                     <Columns>
                                         <asp:BoundField HeaderText="序号" FooterText="序号" 
                                             meta:resourcekey="No">
                                             <ItemStyle CssClass="GridViewRowWidth_40" />
                                         </asp:BoundField>
                                         <asp:TemplateField meta:resourcekey="TemplateField">
                                             <HeaderTemplate>
                                                 <img src="../Images/gvSettingpic.gif" id="img01" runat="server"  class="gvSettingImg" onclick="gvUserSetting('7041','gvOrderDetail');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                 <asp:CheckBox ID="CheckBox1" runat="server" 
                                                     onclick="selectAll(this,'gvOrderDetail');" 
                                                     meta:resourcekey="CheckBox1" />
                                             </HeaderTemplate>
                                             <ItemTemplate>
                                                 <asp:CheckBox ID="chbSelect" runat="server" 
                                                     meta:resourcekey="chbSelect" />
                                             </ItemTemplate>
                                             <FooterTemplate>
                                                 <asp:CheckBox ID="CheckBox2" runat="server" 
                                                     onclick="selectAll(this,'gvOrderDetail');" 
                                                     meta:resourcekey="CheckBox2" />
                                             </FooterTemplate>
                                             <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                             <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="LineID" HeaderText="行号" FooterText="行号" 
                                             SortExpression="LineID" meta:resourcekey="LineID">
                                             <ItemStyle CssClass="GridViewRowWidth_50" />
                                         </asp:BoundField>
                                         <asp:TemplateField ShowHeader="False" HeaderText="分配" FooterText="分配" 
                                             meta:resourcekey="Dispense">
                                             <ItemTemplate>
                                                 <asp:LinkButton ID="lnkbtnPuraway" runat="server" CausesValidation="False" CommandName="Select"
                                                     Text="&lt;img src=&quot;../Images/icon_edit.gif&quot; 
                                                     class=&quot;img&quot; style=&quot;border:none 0px blue;&quot; alt=&quot;allocate&quot; 
                                                     __designer:mapid=&quot;60b&quot;/&gt;" 
                                                     meta:resourcekey="lnkbtnPuraway"></asp:LinkButton>
                                             </ItemTemplate>
                                             <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                         </asp:TemplateField>
                                         <%--<asp:BoundField DataField="SkuID" HeaderText="货品" FooterText="货品" 
                                             SortExpression="SkuID" meta:resourcekey="SkuID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField> --%> 
                                         <asp:TemplateField HeaderText="货品代码" FooterText="货品代码" SortExpression="SkuID" meta:resourcekey="SkuID">
                                            <ItemTemplate>
                                                <asp:Label ID="lblSkuID" runat="server" Text='<%# Eval("SkuID").ToString() %>' onmouseover="this.style.cursor='hand';this.style.textDecoration='underline';" onmouseout="this.style.textDecoration='none';"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                         <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" 
                                             SortExpression="SkuDescr" meta:resourcekey="SkuDescr" >
                                            <ItemTemplate>
                                                <asp:Label ID="lblSkuDescr" runat="server" 
                                                    Text='<%# Eval("SkuDescr").ToString() %>' 
                                                    meta:resourcekey="lblSkuDescr"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_200" />       
                                         </asp:TemplateField>                             
                                         <asp:BoundField DataField="UomID" HeaderText="单位" FooterText="单位" 
                                             SortExpression="UomID" meta:resourcekey="UomID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="StatusD" HeaderText="状态" FooterText="状态" 
                                             SortExpression="StatusD" meta:resourcekey="StatusD">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:TemplateField FooterText="订货数量" HeaderText="订货数量" 
                                             SortExpression="OriginalQty" meta:resourcekey="OriginalQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblOriginalQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("OriginalQty").ToString()) %>' 
                                                     meta:resourcekey="lblOriginalQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                         <asp:TemplateField FooterText="预分配数量" HeaderText="预分配数量" 
                                             SortExpression="PreallocatedQty" meta:resourcekey="PreallocatedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblPreallocatedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("PreallocatedQty").ToString()) %>' 
                                                     meta:resourcekey="lblPreallocatedQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_150" />
                                         </asp:TemplateField>
                                         <asp:TemplateField FooterText="分配数量" HeaderText="分配数量" 
                                             SortExpression="AllocatedQty" meta:resourcekey="AllocatedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblAllocatedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("AllocatedQty").ToString()) %>' 
                                                     meta:resourcekey="lblAllocatedQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                         <asp:TemplateField FooterText="拣货数量" HeaderText="拣货数量" 
                                             SortExpression="PickedQty" meta:resourcekey="PickedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblPickedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("PickedQty").ToString()) %>' 
                                                     meta:resourcekey="lblPickedQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                         <asp:TemplateField FooterText="发货数量" HeaderText="发货数量" 
                                             SortExpression="ShippedQty" meta:resourcekey="ShippedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblShippedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("ShippedQty").ToString()) %>' 
                                                     meta:resourcekey="lblShippedQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="ExternalLot" HeaderText="外部批号" FooterText="外部批号" SortExpression="ExternalLot">
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="VendorID" HeaderText="供应商代码" FooterText="供应商代码" SortExpression="VendorID">
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr01" HeaderText="批次属性01" FooterText="批次属性01" SortExpression="LotAttr01">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr02" HeaderText="批次属性02" FooterText="批次属性02" SortExpression="LotAttr02">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr03" HeaderText="批次属性03" FooterText="批次属性03" SortExpression="LotAttr03">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr04" HeaderText="批次属性04" FooterText="批次属性04" SortExpression="LotAttr04">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr05" HeaderText="批次属性05" FooterText="批次属性05" SortExpression="LotAttr05">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr06" HeaderText="批次属性06" FooterText="批次属性06" SortExpression="LotAttr06">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr07" HeaderText="批次属性07" FooterText="批次属性07" SortExpression="LotAttr07">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr08" HeaderText="批次属性08" FooterText="批次属性08" SortExpression="LotAttr08">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr09" HeaderText="批次属性09" FooterText="批次属性09" SortExpression="LotAttr09">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr10" HeaderText="批次属性10" FooterText="批次属性10" SortExpression="LotAttr10">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:TemplateField FooterText="生产日期" HeaderText="生产日期" SortExpression="ProduceDate">
                                            <ItemTemplate>
                                                <asp:Label ID="lblProduceDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ProduceDate").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="失效日期" HeaderText="失效日期" SortExpression="ExpiryDate">
                                            <ItemTemplate>
                                                <asp:Label ID="lblExpiryDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ExpiryDate").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="入库日期" HeaderText="入库日期" SortExpression="ReceiptDate">
                                            <ItemTemplate>
                                                <asp:Label ID="lblReceiptDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ReceiptDate").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="实际发货日期" HeaderText="实际发货日期" SortExpression="ActualShipDate">
                                            <ItemTemplate>
                                                <asp:Label ID="lblActualShipDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ActualShipDate").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:TemplateField>
                                     </Columns>
                                 </asp:GridView>
                             </div>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr style="height: 30px;">
                         <td>
                         </td>
                         <td>
                         </td>
                     </tr>
                 </table>
                 <div style="margin-left: 10px">
                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
                             <tr>
                                 <td class="Result_01">
                                     总计：
                                 </td>
                                 <td class="Result_02" >
                                     <table>
                                         <tr>
                                         <td Style="margin-right: 20px;"> &nbsp; &nbsp; </td>
                                             <td  >
                                                 <asp:Label ID="lblTotalOriginal" runat="server" Text="订货数量:" class="label" ></asp:Label>
                                                 <asp:Label ID="lblTotalOriginalQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                             <td>
                                                 <asp:Label ID="lblTotalPreallocated" runat="server" Text="预分配数量:" class="label" ></asp:Label><asp:Label
                                                     ID="lblTotalPreallocatedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                             <td>
                                                 <asp:Label ID="lblTotalAllcated" runat="server" Text="分配数量:" class="label" ></asp:Label><asp:Label
                                                     ID="lblTotalAllcatedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                             <td>
                                                 <asp:Label ID="lblTotalPicked" runat="server" Text="拣货数量:" class="label" ></asp:Label><asp:Label
                                                     ID="lblTotalPickedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                             <td>
                                                 <asp:Label ID="lblTotalShipped" runat="server" Text="发货数量:" class="label" ></asp:Label><asp:Label
                                                     ID="lblTotalShippedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>                                              
                                         </tr>
                                     </table>
                                 </td>
                                 <td class="Result_03">
                                 </td>
                             </tr>
                              <tr  style="height:20px">
                                <td></td>
                                </tr>
                         </table>
                     </div>
             </div>             
             <div id="con_one_3" style="display:none; overflow-x:auto; overflow-y:hidden; ">
                 <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                     <tr>
                         <td>                             
                         </td>
                     </tr>
                     <tr style="height: 10px;">
                         <td>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr>
                         <td >
                             <div>
                                 <asp:GridView ID="gvPreallocateDetail" runat="server"  AllowSorting="True"
                                     AutoGenerateColumns="False" AllowPaging="True" CssClass="gridview" 
                                     Width="1000px" onrowdatabound="gvPreallocateDetail_RowDataBound"  
                                     DataKeyNames="OrderID,OrderLineID" oninit="gvPreallocateDetail_Init" 
                                     onpageindexchanging="gvPreallocateDetail_PageIndexChanging" 
                                     onsorting="gvPreallocateDetail_Sorting" 
                                     meta:resourcekey="gvPreallocateDetail">
                                     <FooterStyle CssClass="GridViewFooterStyle" />
                                     <RowStyle CssClass="GridViewRowStyle" />
                                     <PagerStyle CssClass="GridViewPageStyle" />
                                     <HeaderStyle CssClass="GridViewHeaderStyle" />
                                     <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                     <Columns>
                                         <asp:BoundField HeaderText="序号" FooterText="序号" 
                                             meta:resourcekey="No">
                                             <ItemStyle CssClass="GridViewRowWidth_40" />
                                         </asp:BoundField>
                                         <asp:TemplateField Visible="false" meta:resourcekey="TemplateFieldResource9">
                                             <HeaderTemplate>
                                                <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('7041','gvPreallocateDetail');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                 <asp:CheckBox ID="CheckBox1" runat="server" 
                                                     onclick="selectAll(this,'gvPreallocateDetail');" 
                                                     meta:resourcekey="CheckBox1Resource2" />
                                             </HeaderTemplate>
                                             <ItemTemplate>
                                                 <asp:CheckBox ID="chbSelect" runat="server" 
                                                     meta:resourcekey="chbSelectResource2" />
                                             </ItemTemplate>
                                             <FooterTemplate>
                                                 <asp:CheckBox ID="CheckBox2" runat="server" 
                                                     onclick="selectAll(this,'gvPreallocateDetail');" 
                                                     meta:resourcekey="CheckBox2Resource2" />
                                             </FooterTemplate>
                                             <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                             <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="OrderID" HeaderText="订单号" FooterText="订单号" 
                                             SortExpression="OrderID" meta:resourcekey="OrderID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="OrderLineID" HeaderText="行号" FooterText="行号" 
                                             SortExpression="OrderLineID" meta:resourcekey="OrderLineID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="OwnerID" HeaderText="货主代码" FooterText="货主代码" 
                                             SortExpression="OwnerID" meta:resourcekey="OwnerID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>             
                                         <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" 
                                             SortExpression="SkuID" meta:resourcekey="SkuID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>   
                                         <asp:BoundField DataField="Lot" HeaderText="批次号" FooterText="批次号" 
                                             SortExpression="Lot" meta:resourcekey="Lot">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>                                
                                         <asp:BoundField DataField="UomID" HeaderText="单位" FooterText="单位" 
                                             SortExpression="UomID" meta:resourcekey="UomID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="PackID" HeaderText="包装" FooterText="包装" 
                                             SortExpression="PackID" meta:resourcekey="PackID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:TemplateField FooterText="预分配数量" HeaderText="预分配数量" SortExpression="PreallocatedQty" 
                                             meta:resourcekey="PreallocatedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblPreallocatedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("Qty").ToString()) %>' 
                                                     meta:resourcekey="lblPreallocatedQtyResource2"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_150" />
                                         </asp:TemplateField>
                                         <asp:TemplateField FooterText="分配数量" HeaderText="分配数量" 
                                             SortExpression="AllocatedQty" meta:resourcekey="AllocatedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblAllocatedQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("AllocatedQty").ToString()) %>' 
                                                     meta:resourcekey="lblAllocatedQtyResource2"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                     </Columns>
                                 </asp:GridView>
                             </div>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr style="height: 30px;">
                         <td>
                         </td>
                         <td>
                         </td>
                     </tr>
                 </table>
                 <div style="margin-left: 10px">
                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
                             <tr>
                                 <td class="Result_01">
                                     总计：
                                 </td>
                                 <td class="Result_02" >
                                     <table>
                                         <tr>
                                         <td Style="margin-right: 20px;"> &nbsp; &nbsp; </td>
                                             <td  >
                                                 <asp:Label ID="lblPDTotalPreallocated" runat="server" Text="预分配数量:" class="label" ></asp:Label>
                                                 <asp:Label ID="lblPDTotalPreallocatedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                             <td>
                                                 <asp:Label ID="lblPDTotalAllocated" runat="server" Text="分配数量:" class="label" ></asp:Label><asp:Label
                                                     ID="lblPDTotalAllocatedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>                                                                                  
                                         </tr>
                                     </table>
                                 </td>
                                 <td class="Result_03">
                                 </td>
                             </tr>
                              <tr  style="height:20px">
                                <td></td>
                                </tr>
                         </table>
                     </div>
             </div>
             <div id="con_one_4" style="display: none; overflow-x:auto; overflow-y:hidden;">
              <table style="display: block; margin-left: 10px; margin-top: 10px;">
                     <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                         <asp:Button ID="btnConfirmPick" runat="server" CssClass="button" 
                                             Enabled="False" Text="<%$Resources:ButtonResource,btnConfirmPick%>" OnClientClick="blockScreen();" 
                                             OnClick="btnConfirmPick_Click" />                                
                                     </td>
                                     <td>     
                                         <asp:Button ID="btnRevertPick" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnRevertPick%>" 
                                             Enabled="False" OnClientClick="blockScreen();" OnClick="btnRevertPick_Click" />                    
                                     </td>
                                     <td>     
                                         <asp:Button ID="btnBatchRevertAllocate" runat="server" CssClass="button" 
                                             Text="<%$Resources:ButtonResource,btnBatchRevertAllocate%>" OnClientClick="blockScreen();" 
                                             OnClick="btnBatchRevertAllocate_Click"  Enabled="False" />                    
                                     </td>
                                </tr>
                            </table>
                        </td>
                        <td></td>
                     </tr>
                     <tr style="height: 10px;">
                         <td>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr>
                         <td >
                             <div>
                                 <asp:GridView ID="gvPickDetail" runat="server" AutoGenerateColumns="False"  AllowSorting="True"
                                     AllowPaging="True" CssClass="gridview" Width="1450px"
                                     DataKeyNames="PickDetailID,Status" onrowdatabound="gvPickDetail_RowDataBound" 
                                     onpageindexchanging="gvPickDetail_PageIndexChanging" oninit="gvPickDetail_Init" 
                                     onsorting="gvPickDetail_Sorting" meta:resourcekey="gvPickDetail">
                                     <FooterStyle CssClass="GridViewFooterStyle" />
                                     <PagerStyle CssClass="GridViewPageStyle" />
                                     <RowStyle CssClass="GridViewRowStyle" />
                                     <HeaderStyle CssClass="GridViewHeaderStyle" />
                                     <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                     <Columns>
                                         <asp:BoundField HeaderText="序号" FooterText="序号" 
                                             meta:resourcekey="No">
                                             <ItemStyle CssClass="GridViewRowWidth_40" />
                                         </asp:BoundField>
                                         <asp:TemplateField meta:resourcekey="TemplateField2">
                                             <HeaderTemplate>
                                                <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('7041','gvPickDetail');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                 <asp:CheckBox ID="CheckBox1" runat="server" 
                                                     onclick="selectAll(this,'gvPickDetail');" 
                                                     meta:resourcekey="CheckBox1Resource3" />
                                             </HeaderTemplate>
                                             <ItemTemplate>
                                                 <asp:CheckBox ID="chbSelect" runat="server" 
                                                     meta:resourcekey="chbSelectResource3" />
                                             </ItemTemplate>
                                             <FooterTemplate>
                                                 <asp:CheckBox ID="CheckBox2" runat="server" 
                                                     onclick="selectAll(this,'gvPickDetail');" 
                                                     meta:resourcekey="CheckBox2Resource3" />
                                             </FooterTemplate>
                                             <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                             <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="OrderID" HeaderText="订单号" FooterText="订单号" 
                                             SortExpression="OrderID" meta:resourcekey="OrderID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="OrderLineId" HeaderText="行号" FooterText="行号" 
                                             SortExpression="OrderLineId" meta:resourcekey="OrderLineId">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="PickDetailID" HeaderText="拣货单号" FooterText="拣货单号" 
                                             SortExpression="PickDetailID" meta:resourcekey="PickDetailID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="Lot" HeaderText="批号" FooterText="批号" 
                                             SortExpression="Lot" meta:resourcekey="Lot">
                                             <ItemStyle CssClass="GridViewRowWidth_150" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="Loc" HeaderText="来源货位" FooterText="来源货位" 
                                             SortExpression="Loc" meta:resourcekey="Loc">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>                                     
                                           <asp:TemplateField FooterText="目标货位" HeaderText="目标货位" SortExpression="ToLoc" 
                                             meta:resourcekey="ToLoc" >
                                             <ItemTemplate>
                                                 <asp:TextBox ID="txtToLoc" runat="server" Enabled="false" Text='<%# (Eval("ToLoc")) %>'></asp:TextBox>                                               
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>  
                                         <asp:BoundField DataField="LpnID" HeaderText="LPN" FooterText="LPN" 
                                             SortExpression="LpnID" meta:resourcekey="LpnID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" 
                                             SortExpression="SkuID" meta:resourcekey="SkuID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="StatusD" HeaderText="状态" FooterText="状态" 
                                             SortExpression="StatusD" meta:resourcekey="StatusD">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:TemplateField FooterText="分配数量" HeaderText="分配数量" SortExpression="AllocatedQty" 
                                             meta:resourcekey="AllocatedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("Qty").ToString()) %>' 
                                                     meta:resourcekey="lblQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>   
                                         <asp:BoundField DataField="UomID" HeaderText="计量单位" FooterText="计量单位" 
                                             SortExpression="UomID" meta:resourcekey="UomID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="CaseID" HeaderText="箱号" FooterText="箱号" 
                                             SortExpression="CaseID" meta:resourcekey="CaseID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="DropID" HeaderText="落放代码" FooterText="落放代码" 
                                             SortExpression="DropID" meta:resourcekey="DropID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>                                       
                                     </Columns>
                                 </asp:GridView>
                             </div>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr style="height: 30px;">
                      <td>
                      </td>
                      <td>
                      </td>
                  </tr>
                 </table>
                 <div style="margin-left: 10px">
                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
                             <tr>
                                 <td class="Result_01">
                                     总计：
                                 </td>
                                 <td class="Result_02" >
                                     <table>
                                         <tr>
                                         <td Style="margin-right: 20px;"> &nbsp; &nbsp; </td>                                           
                                             <td>
                                                 <asp:Label ID="lblPDTotal" runat="server" Text="分配数量:" class="label" ></asp:Label><asp:Label
                                                     ID="lblPDTotalQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>                                                                                  
                                         </tr>
                                     </table>
                                 </td>
                                 <td class="Result_03">
                                 </td>
                             </tr>
                              <tr  style="height:20px">
                                <td></td>
                                </tr>
                         </table>
                     </div>
             </div>
            
         </div>
            <input type="hidden" id="hdnOrdersID" runat="server" />
              <input type="hidden" id="hdnOwnerID" runat="server" />
            <input type="hidden" id="hdnLineID" runat="server" value="10" />
            <input type="hidden" id="hdnFrom" runat="server" />
            <input type="hidden" id="hdnFlag" runat="server" />
            <input type="hidden" id="hiddenFlag" runat="server" />
            <input type="hidden" id="hdnRtnValue" runat="server" />
             <input type="hidden" id="hdnActionID" runat="server" />
            
        <%--</ContentTemplate>
     
        </asp:UpdatePanel>--%>
    </div>  
    <div id="actionDiv" style="background-color:#FFFFFF; position:absolute;display:none;">           
        <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu">
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPreAllocation" runat="server" visible="false" >
                    <asp:LinkButton ID="lnkbtnPreAllocation" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPreAllocation%>" 
                        OnClientClick="blockScreen();" OnClick="lnkbtnPreAllocation_Click" 
                        meta:resourcekey="lnkbtnPreAllocation" ></asp:LinkButton>
                </td>                  
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnRevertPreAllocation" runat="server" visible="false" >
                    <asp:LinkButton ID="lnkbtnRevertPreAllocation" runat="server" Text="<%$Resources:ButtonResource,lnkbtnRevertPreAllocation%>" 
                        OnClientClick="blockScreen();" OnClick="lnkbtnRevertPreAllocation_Click" 
                        meta:resourcekey="lnkbtnRevertPreAllocation" ></asp:LinkButton>
                </td>                  
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnAllocation" runat="server"  visible="false" >
                    <asp:LinkButton ID="lnkbtnAllocation" runat="server" Text="<%$Resources:ButtonResource,lnkbtnAllocation%>"  
                        OnClientClick="blockScreen();" OnClick="lnkbtnAllocation_Click" 
                        meta:resourcekey="lnkbtnAllocation"  ></asp:LinkButton>
                </td>                  
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnDirectAllocation" runat="server"  visible="false" >
                    <asp:LinkButton ID="lnkbtnDirectAllocation" runat="server" Text="<%$Resources:ButtonResource,lnkbtnDirectAllocation%>"  
                        OnClientClick="blockScreen();" OnClick="lnkbtnDirectAllocation_Click" ></asp:LinkButton>
                </td>                  
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnRevertAllocation" runat="server"  visible="false" >
                    <asp:LinkButton ID="lnkbtnRevertAllocation" runat="server" Text="<%$Resources:ButtonResource,lnkbtnRevertAllocation%>"  
                        OnClientClick="blockScreen();" OnClick="lnkbtnRevertAllocation_Click" 
                        meta:resourcekey="lnkbtnRevertAllocation"  ></asp:LinkButton>
                </td>                  
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnReleasePickTasks" runat="server"  visible="false" >
                    <asp:LinkButton ID="lnkbtnReleasePickTasks" runat="server" Text="<%$Resources:ButtonResource,lnkbtnReleasePickTasks%>" 
                        OnClientClick="blockScreen();" OnClick="lnkbtnReleasePickTasks_Click" 
                        meta:resourcekey="lnkbtnReleasePickTasks" ></asp:LinkButton>
                </td>                 
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnCloseOrder" runat="server" visible="false" >
                    <asp:LinkButton ID="lnkbtnCloseOrder" runat="server" Text="<%$Resources:ButtonResource,lnkbtnClose%>"
                        OnClientClick="blockScreen();" OnClick="lnkbtnClosed_Click"></asp:LinkButton>
                </td>
            </tr>       
             <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnOwnerTransfer" runat="server"  visible="false"  >
                    <asp:LinkButton ID="lnkbtnOwnerTransfer" runat="server" Text="货权转移建议"
                        OnClientClick="blockScreen();" OnClick="lnkbtnOwnerTransfer_Click"></asp:LinkButton>
                </td>
            </tr>       
        </table>
  
    </div>  
     <input type="hidden" id="hiddenReportFlag" /> 
      <div id="reportDiv" style="background-color:#FFFFFF; position:absolute;display:none;">
                 <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu2">
                     <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line"  id="tdlnkbtnPrintOutbound" runat="server"  visible="false" >
                             <asp:LinkButton ID="lnkbtnPrintOutbound" runat="server"  Text="<%$Resources:ButtonResource,lnkbtnPrintOutbound%>" 
                                 OnClientClick="popPrintOutbound();" 
                                 meta:resourcekey="lnkbtnPrintOutbound" ></asp:LinkButton>
                         </td>
                     </tr>
                     <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line"  id="tdlnkbtnPrintPickList" runat="server"  visible="false" >
                             <asp:LinkButton ID="lnkbtnPrintPickList" runat="server"  Text="<%$Resources:ButtonResource,lnkbtnPrintPickList%>" 
                                 OnClientClick="popPrintPickList();" 
                                 meta:resourcekey="lnkbtnPrintPickList" ></asp:LinkButton>
                         </td>
                     </tr>
                     <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line"  id="tdlnkbtnPrintPick" runat="server"  visible="false" >
                             <asp:LinkButton ID="lnkbtnPrintPick" runat="server"  Text="<%$Resources:ButtonResource,lnkbtnPrintPick%>" 
                                 OnClientClick="popPrintPick();blockScreen();"  OnClick="lnkbtnReleasePickTasksByNew_Click"
                                 meta:resourcekey="lnkbtnPrintPick" ></asp:LinkButton>
                         </td>
                     </tr>
                     <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line"  id="tdlnkbtnPrintPickWork" runat="server"  visible="false" >
                             <asp:LinkButton ID="lnkbtnPrintPickWork" runat="server"  Text="<%$Resources:ButtonResource,lnkbtnPrintPickWork%>" 
                                 OnClientClick="popPrintPickWork();"
                                 meta:resourcekey="lnkbtnPrintPickWork" ></asp:LinkButton>
                         </td>
                     </tr>
                     <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                         <td class="line"  id="tdlnkbtnPrintKittingWork" runat="server"  visible="false" >
                             <asp:LinkButton ID="lnkbtnPrintKittingWork" runat="server"  Text="<%$Resources:ButtonResource,lnkbtnPrintKittingWork%>" 
                                 OnClientClick="poplnkbtnPrintKittingWork();"
                                 meta:resourcekey="lnkbtnPrintKittingWork" ></asp:LinkButton>
                         </td>
                     </tr>
                 </table>
           </div>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
	<!--
		hiddenDiv();
		hiddenReportDiv();
	//-->
</script>
